/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lyricsguy.procress;

import java.io.IOException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

/**
 *
 * @author User
 */
public class DocumentGetter {

    private String url;
    private Document doc;

    public DocumentGetter(String url) {
        this.url = url;
        doc = null;

        try {
            doc = Jsoup.connect(url).get();
        } catch (IOException ex) {
            System.out.println("IO exception occurs... " + ex.getMessage());
        }

    }

    public Document getDoc() {
        return doc;
    }

    public String getUrl() {
        return url;
    }
}
